package com.ly.mapper;

import com.ly.bean.EasybuyProductImages;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
@author 李岩
@date 2021/12/14-13:52
@describe
*/
@Mapper
public interface EasybuyProductImagesMapper {
    /**
     * delete by primary key
     * @param id primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(Integer id) throws Exception;

    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(EasybuyProductImages record) throws Exception;

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(EasybuyProductImages record) throws Exception;

    /**
     * select by primary key
     * @param id primary key
     * @return object by primary key
     */
    EasybuyProductImages selectByPrimaryKey(Integer id) throws Exception;

    /**
     * 根据商品id查询该商品的图片信息
     */
    List<EasybuyProductImages> selectProductImagesByPid(Integer pid) throws Exception;


    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(EasybuyProductImages record) throws Exception;

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(EasybuyProductImages record) throws Exception;
}